<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"  isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

<jsp:include page="../include/admin/adminHeader.jsp" />
<jsp:include page="../include/admin/adminNavigator.jsp" />

<script>
$(function(){
	$("addForm").submit(function(){
		if(checkEmpty("name","用户名称"))
			return true;
		return false;
	});
});
</script>

<title>用户管理</title>

<div class="workingArea">
    <h1 class="label label-info" >用户管理</h1>
 
    <br>
    <br>
     
    <div class="listDataTableDiv">
        <table class="table table-striped table-bordered table-hover  table-condensed">
            <thead>
                <tr class="success">
                    <th>ID</th>
                    <th>用户名称</th>
                </tr>
            </thead>
            <tbody>
                <c:forEach items="${users}" var="u">
                 
                <tr>
                    <td>${u.id}</td>
                    <td>${u.name}</td>
                </tr>
                </c:forEach>
            </tbody>
        </table>
    </div>
     
    <div class="pageDiv">
        <jsp:include page="../include/admin/adminPage.jsp" />
    </div>
 
</div>
 
<jsp:include page="../include/admin/adminFooter.jsp" />